import request from 'plugin/axios'


export function getIncomUserList(params:any):Promise<any>{
    return request({
        url:'v1/income/user/list',
        params,
        method:'get'
    })
}

export function getCommissionLog(params:any):Promise<any>{
    return request({
        url:'v1/income/record/list',
        params,
        method:'get'
    })
}

export function getWithdraw():Promise<any>{
    return request({
       url:'v1/income/withdraw/get',
       method:'get' 
    })
}

export function getIncomeWithdrawList(params:any):Promise<any>{
    return request({
        url:'v1/income/withdraw/list',
        method:'get',
        params
    })
}

export function applyWithdraw(data:any):Promise<any>{
    return request({
        url:'v1/income/withdraw/apply/set',
        method:'post',
        data
    })
}

export function getWithdrawDetail(params:any):Promise<any>{
    return request({
        url:'v1/income/withdraw/detail/get',
        method:'get',
        params
    })
}

export function getIncomeCommissionExport(params:any):Promise<any>{
    return request({
        url:'v1/income/record/export',
        params,
        method:'get'
    })
}